package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 电梯维修报告配置
 */
@Data
@TableName(value = "blade_elevator_report_config")
public class ElevatorReportConfig implements Serializable {

	/**
	 * 记录id
	 */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;

	/**
	 * 项目id
	 */
	@TableField(value = "building_id")
	private Long buildingId;

	/**
	 * 电梯id
	 */
	@TableField(value = "elevator_id")
	private Long elevatorId;

	@TableField(value = "tenant_id")
	private String tenantId;

	@TableField(value = "create_user")
	private Long createUser;

	@TableField(value = "create_time")
	private Date createTime;

	@TableField(exist = false)
	private String buildingName;

	@TableField(exist = false)
	private String elevatorAddress;

	@TableField(exist = false)
	private List<ElevatorReportConfig> configs;
}
